package com.hx.petsever.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hx.petsever.entity.Orders;
import com.hx.petsever.entity.userOrder;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;

public interface OrderService extends IService<Orders> {

    HashMap InsertOne(Orders orders, userOrder userOrder);

    HashMap getOrderByState(@Param("userid") String userid ,@Param("state") Integer state);

    HashMap buyOne(@Param("userid") String userid , @Param("id") String id,@Param("price") String price);

    HashMap cancelOrder(@Param("id") String id);

    HashMap confirmOrder(@Param("id") String id);

    HashMap applyCancelOrder(@Param("id") String id,@Param("reason") String reason);

    HashMap getAll();

    HashMap deliver( @Param("id") String id);

    String getReason(@Param("id") String id);

    HashMap backOrder(@Param("id") String id);

    HashMap Assess(@Param("goodid") Integer goodid , @Param("orderid") String orderid , @Param("userid") String userid , @Param("assess") String assess);

    HashMap haveAssess(@Param("orderid") String orderid);
}
